﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PagingGridViewWithCheckBox.ascx.cs"
    Inherits="ExpertMIS.Admin.UserControl.PagingGridViewWithCheckBox" %>
<style type="text/css">
    .gridview_header
    {
    }
    .gridview_header_checkbox
    {
    }
    .gridview_row_checkbox
    {
    }
</style>
<asp:HiddenField runat="server" ID="hfStart" />
<asp:HiddenField runat="server" ID="hfTotal" />
<asp:GridView ID="gvList" runat="server" CellPadding="4" ForeColor="Black" AllowPaging="True"
    GridLines="Vertical" Width="100%" OnSelectedIndexChanged="gvList_SelectedIndexChanged"
    AllowSorting="True" OnSorted="gvList_Sorted" BackColor="White" BorderColor="#DEDFDE"
    BorderStyle="None" BorderWidth="1px" OnRowDataBound="gvList_RowDataBound" OnRowCommand="gvList_RowCommand"
    EnableViewState="true">
    <RowStyle BackColor="#F7F7DE" Width="100px" Font-Names="宋体" Font-Size="9pt" />
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <ItemTemplate>
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:CheckBox ID="cbChecked" runat="server" CssClass="gridview_row_checkbox" EnableViewState="true" />
                        </td>
                        <td>
                            |
                        </td>
                        <td>
                            <asp:ImageButton ID="ibEdit" runat="server" CausesValidation="False" CommandName="edit"
                                ImageUrl="~/imgs/edit.gif" AlternateText="编辑" Style="float: left" Width="16px">
                            </asp:ImageButton>
                        </td>
                        <td>
                            |
                        </td>
                        <td>
                            <asp:ImageButton ID="ibDelete" runat="server" CausesValidation="False" CommandName="delete"
                                ImageUrl="~/imgs/delete.gif" AlternateText="删除" Style="float: left"></asp:ImageButton>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            <HeaderTemplate>
                <asp:CheckBox ID="cbSelectedAll" runat="server" OnCheckedChanged="cbSelectedAll_CheckedChanged"
                    Text="全选" CssClass="gridview_header_checkbox" />
            </HeaderTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#CCCC99" />
    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="False" ForeColor="White" Font-Names="宋体"
        Font-Size="10pt" />
    <HeaderStyle BackColor="#507cd1" Font-Bold="True" ForeColor="White" Font-Names="宋体"
        Font-Size="12px" HorizontalAlign="Left" />
    <AlternatingRowStyle BackColor="White" />
    <EmptyDataTemplate>
        <h1 style="color: Red;">
            查询无数据</h1>
    </EmptyDataTemplate>
</asp:GridView>
<div style="text-align: right; padding-right: 12px; font-size: 9pt;">
    【第<asp:Label ID="lbCurPageCount" runat="server" />页】/【共<asp:Label ID="lbTotalPageCount"
        runat="server" />页】&nbsp;
    <asp:LinkButton runat="server" Text="【上一页】" CssClass="prePage" ID="lbPage" OnClick="lbPrior_Click"></asp:LinkButton>|
    <asp:LinkButton runat="server" Text="【下一页】" ID="lbNext" CssClass="nextPage" OnClick="lbNext_Click"></asp:LinkButton>
</div>
